<!DOCTYPE html>
<html lang="en">
<head>  
    <meta charset="UTF-8">  
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图书管理</title>
    <link rel="stylesheet" href="./t1.css">
</head>

<body>
    <div class="outer">
        <div class="addBook">
            <h2>添加图书</h2>
            <div class="inputBtn">
                <input type="text" placeholder="书名" id="name">
                <input type="text" placeholder="作者" id="author">
                <input type="number" placeholder="出版年份" id="year">
                <button id="add">添加</button>
            </div>
        </div>
        <br>
        <div>
            <input type="text" placeholder="搜索书名" class="search">
        </div>
        <br>
        <div class="bookList"></div>
    </div>
    <div class="modal">
        <div class="modal-cont">
            <span class="close">&times;</span>
            <h2>修改图书信息</h2>
            <input type="text" placeholder="书名" id="modalname">
            <input type="text" placeholder="作者" id="modalauthor">
            <input type="number" placeholder="出版年份" id="modalyear">
            <button id="savebtn">保存修改</button>
        </div>
    </div>
    <script src="./t1.js"></script>
</body>
</html>    